﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-19 19:51
    /// 描 述：商铺管理实体类
    /// </summary>
    [Table("shop_info")]
    public class ShopEntity : BaseEntity
    {
        /// <summary>
        /// 商铺编码
        /// </summary>
        /// <returns></returns>
        public string shop_code { get; set; }
        /// <summary>
        /// 商铺名称
        /// </summary>
        /// <returns></returns>
        public string shop_name { get; set; }
        /// <summary>
        /// 归类：1.新车，2.超市,3租车
        /// </summary>
        /// <returns></returns>
        public string shop_type { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>
        /// <returns></returns>
        public string link_man { get; set; }
        /// <summary>
        /// 门店负责人
        /// </summary>
        [NotMapped]
        public string user_name { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        /// <returns></returns>
        public string phone_number { get; set; }
        /// <summary>
        /// 供应商开户银行名称
        /// </summary>
        /// <returns></returns>
        public string bank_name { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        /// <returns></returns>
        public string bank_account { get; set; }
        /// <summary>
        /// 供应商地址
        /// </summary>
        /// <returns></returns>
        public string address { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 状态：0禁止，1启用
        /// </summary>
        /// <returns></returns>
        public int? shop_status { get; set; }
        /// <summary>
        /// 商家封面
        /// </summary>
        /// <returns></returns>
        public string shop_image_url { get; set; }
        /// <summary>
        /// 是否推荐状态：0否，1是
        /// </summary>
        /// <returns></returns>
        public int? pick_status { get; set; }
        /// <summary>
        /// 路由地址
        /// </summary>
        /// <returns></returns>
        public string route_url { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        /// <returns></returns>
        public double longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        /// <returns></returns>
        public double latitude { get; set; }
        /// <summary>
        /// 商铺状态 0营业中
        /// </summary>
        /// <returns></returns>
        public int? status { get; set; }
        /// <summary>
        /// 省编码
        /// </summary>
        public string province_code { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 市编码
        /// </summary>
        public string city_code { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 区编码
        /// </summary>
        public string district_code { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        public string district { get; set; }

        /// <summary>
        /// 选择的区域
        /// </summary>
        public string selected_area { get; set; }

        [NotMapped]
        public string _Area { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }

        [NotMapped]
        public string brandids { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? user_id { get; set; }

        public string Tag { get; set; }

        /// <summary>
        /// 子用户
        /// </summary>
        public string sub_users { get; set; }
    }
}
